<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>兔丝街</title>
<link type="text/css" rel="stylesheet" href="../css/shopping_street=20110716.css" />
<script language="javascript" src="../js/common.js"></script>
</head>
<?PHP
require 'pscws4.class.php';
$cws = new PSCWS4('utf8');
//$cws->set_dict('../pscws23/dict/dict.xdb');
$cws->set_dict('etc/dict.utf8.xdb');
$cws->set_rule('etc/rules.utf8.ini');
//$cws->set_multi(3);
//$cws->set_ignore(true);
//$cws->set_debug(true);
//$cws->set_duality(true);
$cws->send_text("VIVI 小辣椒宫廷复古小甜美可爱蝴蝶结蕾丝小飞袖雪纺衬衫衣。");
//$tops = $cws->get_tops(10, 'n,v');
//print_r($tops);
//print_r($tops[0]["word"]);
//exit;
while ($some = $cws->get_result())
{
   foreach ($some as $word)
   {
   		print_r($word);
      //print_r(iconv('gb2312','utf8', $word["word"].","));
   }
}

exit;

//echo phpinfo();
ini_set("display_errors", "Off");
require 'pscws2.class.php';

// 建立分词类对像, 参数为词典路径
$pscws = new PSCWS2('dict/dict.xdb');
$res = $pscws->segment("VIVI 小辣椒宫廷复古小甜美可爱蝴蝶结蕾丝小飞袖雪纺衬衫衣。");
foreach($res as $i)
	echo $i." ";
//print_r($res);
echo "ok";
?>